# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo02
# Description:
# Author:       98745
# Date:         2019/3/10
#-------------------------------------------------------------------------------

from numpy import *
a=arange(5)
print(a)
print(a.shape)
print(a.shape[0])
m1=array([arange(3),arange(3),arange(3)])
print(m1)
print(len(m1.shape))
print('---------------')
m2=array([arange(3),arange(3)])
print(m2)
print('-----------------')
m3=array([['a','b',4],[1,2,3],[5.3,5,3]])
print(m3)
print(m2.shape)
print('{}是{}维数组'.format('m2',len(m2.shape)))
print(m2.shape[0])
print(m2.shape[1])
